package gx.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "t_supplier")
public class Supplier implements Serializable {
	private static final long serialVersionUID = 1L;   //方便实现序列化
    @Id
    @GeneratedValue
	private Integer id;
    private String address;
    private Integer code;
    private String contact;
    private String email;
    private String name;
    @Lob
    private String remark;
    private String sn;
    private String tel;
    
    //映射关系
    //供应商到采购订单的一对多
//  	@OneToMany(mappedBy="supplier")
//  	private List<Purchase> purcList = new ArrayList<Purchase>();
  	
  	//供应商-评价订单的一对多
//  	@OneToMany(mappedBy="supplier")
//  	private List<Comment> commList = new ArrayList<Comment>();

  	
//	public List<Purchase> getPurcList() {
//		return purcList;
//	}
//	public void setPurcList(List<Purchase> purcList) {
//		this.purcList = purcList;
//	}
//	public List<Comment> getCommList() {
//		return commList;
//	}
//	public void setCommList(List<Comment> commList) {
//		this.commList = commList;
//	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
    

}
